﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace BO
{
    public class Databases
    {
        public VO.Databases objVO;
        DA.Databases objDA;

        public Databases()
        {
            objDA = new DA.Databases();
            objVO = new VO.Databases();
        }

        public void Salvar()
        {
            objDA.objVO = objVO;
            objDA.Salvar();
        }

        public void Atualizar()
        {
            objDA.objVO = objVO;
            objDA.Atualizar();
        }

        public void Excluir()
        {
            objDA.objVO = objVO;
            objDA.Excluir();
        }

        public DataSet getTodosRegistros()
        {
            return objDA.getTodosRegistros();
        }

        public DataSet getRegistroById()
        {
            objDA.objVO = objVO;
            return objDA.getRegistroById();
        }

        public DataSet getRegistroDatabase()
        {
            objDA.objVO = objVO;
            return objDA.getRegistroDatabase();
        }

        public DataSet getTodosRegistroDatabaseByUnidade()
        {
            objDA.objVO = objVO;
            return objDA.getTodosRegistroDatabaseByUnidade();
        }

    }
}